<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
</head>
<body>
<h1>PHP Filter函数库测试</h1>
<form action="doFilter.php" method="post">
	<table border='1' cellpadding='0' cellspacing='0' bgcolor='#ABCDEF' width='80%'>
		<tr>
			<td>邮箱</td>
			<td><input type="text" name="email" id="" placeholder='请输入合法邮箱' />合法邮箱</td>
		</tr>
		<tr>
    		<td>年龄</td>
    		<td>
    			<input type="text" name="age" id="" placeholder='请输入合法年龄' />年龄必须为正整数
    		</td>
		</tr>
		<tr>
    		<td>薪水</td>
    		<td>
    			<input type="text" name="salary" id="" />
    		</td>
		</tr>
		<tr>
			<td>URL</td>
			<td><input type="text" name="url" id="" placeholder='请输入合法URL地址' />类似http://phpfamily.org</td>
		</tr>
		<tr>
    		<td>测试布尔类型</td>
    		<td>
    			<input type="text" name="testBool" id="" />
    		</td>
		</tr>
		<tr>
    		<td>测试IP地址</td>
    		<td>
    			<input type="text" name="ip" id="" />
    		</td>
		</tr>
		<tr>
    		<td>测试正则表达式</td>
    		<td>
    			<input type="text" name="reg" id="" />
    		</td>
		</tr>
		<tr>
			<td colspan='2'><input type="submit" value="注册" /></td>
		</tr>
	</table>
</form>	
</body>
</html>